package executor.mvc.controller;

import executor.Entity.Testdata;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {
    //POST有参（普通参数+对象参数）
    @RequestMapping(value = "doPostControllerThree",method = RequestMethod.POST)
    public String doPostController(@RequestBody Testdata testdata, Integer flag, String meaning){
        System.out.println("来了");
        return testdata.toString()+"\n" + flag + ">>>" + meaning;
    }
}
